<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<table width="800" border="1" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <th height="20" colspan="6" scope="col">一级菜单管理</th>
  </tr>
  <tr>
    <td height="22" colspan="5"><br></td>
    <td height="22" colspan="1"><a href="WebApp/SystemMenuManagement/Parent_Menu_Add.jsp">添加</a></td>
  </tr>
  <tr>
    <td width="100" height="22" align="center">编号</td>
    <td width="500" align="center">名称</td>
    <td width="50" align="center">图标</td>
    <td width="50" align="center">启用</td>
    <td width="50" align="center">编辑</td>
    <td width="50" align="center">删除</td>
  </tr>
  <s:iterator value="parentMenuList" var="list">
  <tr>
    <td height="20" align="center"><s:property value="parentMenuID"/></td>
    <td align="center"><a href='childMenu!showList?parentMenuID=<s:property value="parentMenuID"/>'><s:property value="parentMenuName"/></a></td>
    <td align="center"><img src="<s:property value="parentMenuIcon"/>"/></td>
    <td align="center">
    	<s:if test="parentMenuDisplayKey == 1">是</s:if>
    	<s:else>否</s:else>
    </td>
    <td align="center"><a href='parentMenu!update?mode=getParentMenuPO&parentMenuID=<s:property value="parentMenuID"/>'>编辑</a></td>
    <td align="center"><a href='parentMenu!delete?parentMenuID=<s:property value="parentMenuID"/>' onclick="javascript:return confirm('删除后不可恢复，确定要删除吗？');">删除</a></td>
  </tr>
  </s:iterator>
</table>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div id="showMsg" align="center"><s:property value="messageTips" /></div>
</body>
</html>
